package com.ymttest.database.sqlwapper.anlihui;

import java.util.List;

import com.ymt.database.SqlManager;
import com.ymttest.database.model.anlihui.OperateLog;

public class OperateLogWrapper {
	
	SqlManager manager;

    public OperateLogWrapper() {
        manager = new SqlManager("anlihui");
    }
    
    @SuppressWarnings("unchecked")
	public OperateLog selectByPrimaryKey(Long id) {
    	
    	OperateLog operateLog = new OperateLog();
    	List<OperateLog> result = manager
                .getSelectResults(
                        "com.ymttest.database.mapping.anlihui.OperateLogMapper.selectByPrimaryKey",
                        id);
        manager.commit();
        
		if (result.size() > 0) {
			operateLog = result.get(0);
		}
		
        return operateLog;
    }
    
    public static void main(String[] args) {
    	
    	OperateLogWrapper test = new OperateLogWrapper();
    	System.out.println(test.selectByPrimaryKey(1L).getRemark());
    }
}
